24. Any refund of contributions or of other amounts to be made following a death must be reduced by the sums awarded to the spouse with the interest provided for in the Act, and accrued from the date of assessment to the first day of the month during which the refund is made, except for the period during which a pension is paid.